package com.xyz.pojo;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity(name = "product_info")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductInfo {
	@Id
	@Column(name = "product_id")
	private String productId;

	@Column(name = "product_name")
	private String productName;
	
	@Column(name = "product_price")
	private BigDecimal productPrice;
	
	@Column(name = "product_stock")
	private Integer productStock;
	
	@Column(name = "product_description")
	private String productDescription;
	
	@Column(name = "product_icon")
	private String productIcon;
	
	@Column(name = "product_type")
	private Integer categoryType;

	/**
	 * 0-下架；1-正常
	 */
	@Column(name = "product_status")
	private Integer productStatus;
	
	@Column(name="create_time")
	private Date createTime = new Date();
	
	@Column(name="update_time")
	private Date updateTime = new Date();

}